package com.cluster.platform.common.api;

import lombok.Getter;

@Getter
public enum DictionaryEnums implements EnumsCode {
    VALID(1,"有效"),
    VALID_STR("1","有效"),
    INVALID(0,"无效"),
    INVALID_STR("0","无效"),
    DISABLED(0,"禁用"),
    DISABLED_STR("0","禁用"),
    USABLE(1,"可用"),
    USABLE_STR("1","可用")
    ;
    int code;
    String codeStr;
    String message;

    private DictionaryEnums(int code,String message) {
        setCode(code);
        setMessage(message);
    }

    private DictionaryEnums(String codeStr,String message) {
        setCodeStr(codeStr);
        setMessage(message);
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setCodeStr(String codeStr) {
        this.codeStr = codeStr;
    }
}
